package request

import (
	"gitee.com/cjsn/topsdk/ability254/domain"
	"gitee.com/cjsn/topsdk/util"
)

type TmallServicecenterWorkcardRefuseRequest struct {
	/*
	   买家拒收信息     */
	BuyerRefuseAcceptRequest *domain.TmallServicecenterWorkcardRefuseBuyerRefuseAcceptRequest `json:"buyer_refuse_accept_request" required:"true" `
}

func (s *TmallServicecenterWorkcardRefuseRequest) SetBuyerRefuseAcceptRequest(v domain.TmallServicecenterWorkcardRefuseBuyerRefuseAcceptRequest) *TmallServicecenterWorkcardRefuseRequest {
	s.BuyerRefuseAcceptRequest = &v
	return s
}

func (req *TmallServicecenterWorkcardRefuseRequest) ToMap() map[string]interface{} {
	paramMap := make(map[string]interface{})
	if req.BuyerRefuseAcceptRequest != nil {
		paramMap["buyer_refuse_accept_request"] = util.ConvertStruct(*req.BuyerRefuseAcceptRequest)
	}
	return paramMap
}

func (req *TmallServicecenterWorkcardRefuseRequest) ToFileMap() map[string]interface{} {
	fileMap := make(map[string]interface{})
	return fileMap
}
